package com.liliya.service.impl;

import com.liliya.dao.ProDao;
import com.liliya.dao.impl.ProDaoImpl;
import com.liliya.pojo.Pro;
import com.liliya.service.ProService;

import java.util.List;

/**
 * @Description TODO
 * @Author hhy
 * @Date 2021/1/14 18:17
 */
public class ProServiceImpl implements ProService {
    private  ProDao proDao = new ProDaoImpl();

    @Override
    public void insertPro(Pro pro) {
        proDao.insertPro(pro);
    }

    @Override
    public Pro findPro(String name, Object value) {
        return proDao.findPro(name,value);
    }

    @Override
    public List<String> findColumnName() {
        return proDao.findColumnName();
    }

    @Override
    public void deletePro(Integer pronum) {
        proDao.deletePro(pronum);
    }
}
